package com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 创建客户辅助核算DTO
 */
@Getter
@Setter
public class CreateAssistCalculateCustomerDTO extends CreateAssistCalculateBaseDTO implements Serializable {

    /**
     * 客户类别
     */
    @ApiModelProperty(value = "客户类别")
    private String customerCate;

    /**
     * 统一社会信用代码
     */
    @ApiModelProperty(value = "统一社会信用代码")
    private String unifiedSocialCreditCode;

    /**
     * 省份编码
     */
    @ApiModelProperty(value = "省份编码")
    private String provinceCode;

    /**
     * 城市编码
     */
    @ApiModelProperty(value = "城市编码")
    private String cityCode;

    /**
     * 区县编码
     */
    @ApiModelProperty(value = "区县编码")
    private String countyCode;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址")
    @Size(max = 200, message = "详细地址不能超过200个字符")
    private String address;

    /**
     * 联系人
     */
    @ApiModelProperty(value = "联系人")
    @Size(max = 50, message = "联系人不能超过50个字符")
    private String contacts;

    @ApiModelProperty(value = "手机")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式有误")
    private String phone;

}
